package com.community.contents.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author hjs
 * @since 2023-02-28
 */
@TableName("t_comment")
@ApiModel(value = "Comment对象", description = "评论表")
@Data
public class CommentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("评论ID")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("父级id")
      private String pid;

      @ApiModelProperty("评论类型:1帖子")
      private Integer type;

      @ApiModelProperty("评论作者ID")
      private String userId;

      @ApiModelProperty("被回复用户ID")
      private String toUid;

      @ApiModelProperty("评论帖子ID")
      private String postId;

      @ApiModelProperty("评论内容")
      private String content;

      @ApiModelProperty("评论状态")
      private Integer status;

      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;

}
